package ynu.lcy.dao;


import org.springframework.data.jpa.repository.JpaRepository;
import ynu.lcy.entity.Order;

import java.util.List;

public interface IOrderDao extends JpaRepository<Order,Long> {
    List<Order> findAllByCustomerId(Long customerId);
    //获取商家订单
    List<Order> findAllByBusinessId(Long businessId);
}